<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>评论详情</title>
    <%- include common %>
</head>
<body>
    <%- include('head', {title: 'mlist', username: username}) %>

    <div class="container-fluid">
        <div class="container">
            <div class="row">
                <div class="col-md-6  col-sm-12">
                    <h4 class="text-primary text-center">电影介绍</h4>
                    <div class="thumbnail" style="cursor: pointer;">
                        <img style="height:240px;width:100%;" src="<%- result.images.large.replace(/img7/,'img3') %>"  alt="">
                        <div>
                            <p class="text-primary"><%- result.title %></p>
                            <p class="text-info">年份: <%- result.year %></p>
                            <p class="text-danger">评分: <%- result.rating.average %></p>
                            <p class="text-warning">分类: <%- result.genres %></p>
                            <p class="text-primary">导演: <%- result.directors[0].name %></p>

                            <p class="text-danger">演员:    
                            <% result.casts.forEach(v=>{ %>
                                    <span><%- v.name %> </span>
                            <% }) %>
                            </p>

                            <div style="width:100%;overflow: hidden;">
                                <div style="overflow: auto;">
                                    <% result.casts.forEach(v => { %>
                                            <img style="width:160px;height:200px;" src="<%- v.avatars.small.replace(/img7/,'img3') %>" />
                                    <% }) %>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6  col-sm-12">
                    <h4 class="text-warning text-center">电影评论</h4>
                    
                    <div class="well">
                        <div>
                            <p class="text-primary pull-right">评论人：<%- data.author %></p>
                            <p class="text-danger"><%- data.time %></p>
                            <p>
                                <%- data.title %>
                            </p>
                            <hr>
                            <p class="text-info">
                                <%- data.content %>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <%- include foot %>
</body>
</html>